package com.ly.cloud.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.pagination.Pagination;
import com.ly.cloud.entity.ApprovalDetailPo;
import com.ly.cloud.vo.ApprovalDetailVo;
/**
 * @Author: siqi
 * @Description:
 * @Date: Create in 2018/12/7
 */
public interface ApprovalDetailMapper extends BaseMapper<ApprovalDetailPo>{
	/** 
	 * Method Name:  queryAllApprovalCategory
	 * Description:  分页查询
	 * @param page 分页对象
	 * @param name 审批流程明细
	 * @return List<ApprovalDetailVo>
	 * @exception 	
	 * @author siqi
	 * @mail siqi@ly-sky.com
	 * @date: 2018年8月21日
	 */
	public List<ApprovalDetailVo> queryApprovalDetailByCategoryID(@Param("categoryID") Long categoryID);
	
	/** 
	 * Method Name:  updateDetailIsEnable
	 * Description:  设置审批步骤是否启用
	 * @return int
	 * @exception 	
	 * @author siqi
	 * @mail siqi@ly-sky.com
	 * @date: 2018年8月21日
	 */
	public int updateDetailIsEnable(@Param("map")HashMap<String,Long> map);

	/**
	 * 审批初始化，提交业务时调用
	 * @param param
	 * @author caihuihai 
	 * @date 2018-12-25
	 */
	public void initApproval(Map<String, String> param);

	/**
	 * 审批处理过程
	 * 返回的审批状态信息(8:审批不通过,9审批通过)
	 * @param param
	 * @author caihuihai 
	 * @date 2018-12-25
	 */
	public void processApproval(Map<String, String> param); 
}
